<?php

namespace app\common\model;

use think\Model;

class Project extends Model
{
    protected $autoWriteTimestamp = true;

    public static function getProjects($status = 1, $isdelete = 0)
    {
        return self::where('status', 1)->where('isdelete', 0)->select();
    }

    public function menu()
    {
        return $this->belongsTo('ProjectMenu', 'pid', 'id');
    }
}
